//
//  CZHomeTitleButton.swift
//  weibo10
//
//  Created by apple on 16/5/16.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class CZHomeTitleButton: UIButton
{
    override func layoutSubviews() {
       super.layoutSubviews()
        
     titleLabel?.frame.origin.x = 0
        //将图片的frame.origin.x设置为文字的宽度
        imageView?.frame.origin.x = titleLabel!.frame.width + 3
        
        
    }
}
